package com.aricksm.xuan.activity01;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Created by xuan on 16/6/17.
 */
public class OrderView extends Activity {

    TextView orderText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.order);

        orderText = (TextView) findViewById(R.id.textOrder);

        Order order = getIntent().getParcelableExtra("order");
        int count = order.count;
        String address = order.address;
        boolean isReceived = order.isReceived;

        orderText.setText("count"+count+",address"+order.address);

    }
}
